<div class="row m-n">
    <div class="crumbs-bar">
        <div yb-crumbs></div>
    </div>
    <div tabset type="tab">
        <div tab heading="人员配置标准">
            <div class="row wrapper-y-sm">
                <div class="search-bar wrapper-none col-xs-12">
                    <div class="btn-group m-l-xs pull-right">
                        <button type="button" class="btn btn-default base-color" ng-click="search()" title="刷新">
                            <i class="yb-icon ico-refresh"></i>
                        </button>
                        <div class="btn btn-default base-color" ng-if="btnPermission.agentPersonConfigImport">
                            <div title="导入" ng-click="importData()">
                                <i class="yb-icon ico-import-o"></i>
                            </div>
                        </div>
                    </div>
                    <div class="input-group pull-right clearfix">
                        <input type="text" ng-model="condition.companyNameLikeList" class="form-control txt-search"
                            placeholder="代理商">
                        <span class="input-group-addon cursor-pointer" ng-click="search(1)">搜索</span>
                    </div>
                </div>
            </div>
            <div class="main-area">
                <div yb-table-fixed class="table-fixed-wrap fix-left" ele-count="4" scroll-area="right">
                    <div class="th-fixed">
                        <table class="table-fixed border-none" width="{{tableConfig.fixedWidth}}">
                            <thead>
                                <tr>
                                    <th width="60" title="序号">序号</th>
                                    <th width="140" title="代理商">代理商</th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="th-scroll-x" ng-style="tableConfig.billFixedStyle">
                        <table class="table-fixed border-none" width="{{tableConfig.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol" target-width="tableConfig.scrollWidth">
                                        </div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll-y" ng-show="dataList.length > 0">
                        <table class="table-fixed border-none" width="{{tableConfig.fixedWidth}}">
                            <tbody>
                                <tr ng-repeat="item in dataList track by $index" ng-click="selectRow($index)"
                                    ng-class="{'row-selected': $index === markInfo.curRow}">
                                    <td class="spill-dots" width="60" title="{{$index+1}}">{{$index+1}}</td>
                                    <td class="spill-dots" width="140" title="{{item.orgName}}">
                                        <span>{{item.orgName}}</span>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="dataList.length > 0" ng-style="tableConfig.billFixedStyle">
                        <table class="table-fixed border-none" width="{{tableConfig.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in dataList track by $index" ng-click="selectRow($index)"
                                    ng-class="{'row-selected': $index === markInfo.curRow}">
                                    <td class="spill-dots" ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                        <div ng-if="itemCol.needInput" class="td-edit pos-r">
                                            <div class="date-picker-div1" title="{{item[itemCol.dataField].numberEmp}}">
                                                <input type="text" class="form-control"
                                                    ng-model="item[itemCol.dataField].numberEmp"
                                                    ng-change="countTotal(item)" yb-number-input max="99999"
                                                    maxlength="9">
                                            </div>
                                            <div class="date-picker-div2">
                                                <a class="btn-operate m-r-xs"
                                                    ng-click="changeNumberEmpk(item[itemCol.dataField])"
                                                    ng-disabled="!btnPermission.agentPersonConfigSave"
                                                    ng-style="{cursor: !btnPermission.agentPersonConfigSave?'not-allowed':'pointer'}"
                                                    title="{{!btnPermission.agentPersonConfigSave?'无权限执行此操作':''}}">提交</a>
                                            </div>
                                        </div>
                                        <div ng-if="!itemCol.needInput" class="spill-dots">
                                            <span title="{{item.totalSize}}">{{item[itemCol.dataField]}}</span>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="dataList.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
                <div yb-page-info ng-model="pageInfo" yb-refresh="search()"></div>
            </div>
        </div>
    </div>
</div>